package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 创业导师信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_mentor_info")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MentorInfoModel {
    @TableId(type = IdType.AUTO)
    private Integer id;//创业导师信息表ID
    private String name;//创业导师姓名
    private String major;//专业方向
    private Integer counsellingCount;//辅导次数
    private String phone;//手机号
    private String vx;//微信号
    private String vxImage;//微信二维码
    private String introduction;//简介
    private String successCases;//辅导成功案例
    private String serviceContent;//服务内容
    private String faceUrl;//头像

    @TableField(exist = false)
    private String phoneMi;//手机号脱敏
    @TableField(exist = false)
    private String vxMi;//微信号脱敏
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
}
